<?php /* Smarty version 2.6.19, created on 2008-07-03 12:19:59
         compiled from admin/room/chat.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'admin/room/chat.tpl', 26, false),)), $this); ?>
<?php $this->assign('meta', "<meta http-equiv=\"refresh\" content=\"5\" />"); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/inc/header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div id = "content">
<h3>Chat room: "<?php echo $this->_tpl_vars['room_name']; ?>
"</h3>

<div id="panels" class="clear-float">
<div id="first-panel-list" class="panel-col">
        <div class="panel show_spaces" id="show_spaces">
          <h2>Who's online:</h2>
<div class="panel-body">
  <ul class="spaces-list" id="my-spaces-list">
     <?php $_from = $this->_tpl_vars['online_users']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo3'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo3']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['i']):
        $this->_foreach['foo3']['iteration']++;
?>
     <a href="/admin/userlist/profile<?php if ($this->_tpl_vars['i']['user_password'] == ''): ?>guest<?php endif; ?>/<?php echo $this->_tpl_vars['i']['user_id']; ?>
/"><?php echo $this->_tpl_vars['i']['user_login']; ?>
</a> |
	 <?php if (! ($this->_foreach['foo3']['iteration']-1)%10 && ! ($this->_foreach['foo3']['iteration']-1) == 0): ?><br /><?php endif; ?> 
	<?php endforeach; else: ?>
	no users
	<?php endif; unset($_from); ?>
  </ul>
  </div>
 </div>
 </div>
 <!--panels -->
 </div>
 
<?php $_from = $this->_tpl_vars['messages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
<span style="background-color:<?php echo smarty_function_cycle(array('values' => "#ccc, #eee"), $this);?>
; display:block; padding:1px; margin:1px;width:90%">
<?php echo $this->_tpl_vars['item']['chat_created']; ?>
 <b><?php echo $this->_tpl_vars['item']['user_login']; ?>
</b>: <?php echo $this->_tpl_vars['item']['chat_message']; ?>
</span>
<?php endforeach; endif; unset($_from); ?><br />

<a href="/admin/room/write/<?php echo $this->_tpl_vars['room_id']; ?>
/">write message</a><br />
<a href="<?php echo $this->_tpl_vars['path']; ?>
">refresh</a><br />

<a href="/admin/chat/login/2/" target="_blank">login as other person</a><br />
</div>
</body>

</html>